package com.loc;

import android.content.Context;
import com.loc.bt;

/* compiled from: LocNetManager.java */
/* loaded from: classes2.dex */
public final class fo {
    private static fo b;
    bo a;
    private Context c;
    private int d = ft.i;
    private boolean e = false;
    private int f = 0;

    private fo(Context context) {
        this.a = null;
        this.c = null;
        try {
            q.a().a(context);
        } catch (Throwable unused) {
        }
        this.c = context;
        this.a = bo.a();
    }

    public static fo a(Context context) {
        if (b == null) {
            b = new fo(context);
        }
        return b;
    }

    public final bu a(fp fpVar) throws Throwable {
        if (this.e) {
            fpVar.a(bt.c.HTTPS);
        }
        return bo.a(fpVar);
    }

    /* JADX WARN: Removed duplicated region for block: B:21:0x0101 A[Catch: all -> 0x0108, TRY_LEAVE, TryCatch #1 {all -> 0x0108, blocks: (B:4:0x0012, B:6:0x007a, B:7:0x0081, B:10:0x008f, B:17:0x00e9, B:19:0x00f0, B:21:0x0101, B:15:0x00e3), top: B:28:0x0012 }] */
    /* JADX WARN: Removed duplicated region for block: B:30:? A[RETURN, SYNTHETIC] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct code enable 'Show inconsistent code' option in preferences
    */
    public final com.loc.fp a(android.content.Context r11, byte[] r12, java.lang.String r13, java.lang.String r14, boolean r15) {
        /*
            Method dump skipped, instructions count: 265
            To view this dump change 'Code comments level' option to 'DEBUG'
        */
        throw new UnsupportedOperationException("Method not decompiled: com.loc.fo.a(android.content.Context, byte[], java.lang.String, java.lang.String, boolean):com.loc.fp");
    }

    /* JADX WARN: Removed duplicated region for block: B:13:0x0060  */
    /* JADX WARN: Removed duplicated region for block: B:14:0x0063  */
    /* JADX WARN: Removed duplicated region for block: B:18:0x00e5 A[Catch: all -> 0x00f8, TryCatch #2 {all -> 0x0100, blocks: (B:2:0x0000, B:9:0x004f, B:11:0x0056, B:15:0x0065, B:7:0x0049, B:16:0x00d7, B:18:0x00e5, B:19:0x00ea), top: B:26:0x0000 }] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct code enable 'Show inconsistent code' option in preferences
    */
    public final java.lang.String a(android.content.Context r9, double r10, double r12) {
        /*
            Method dump skipped, instructions count: 258
            To view this dump change 'Code comments level' option to 'DEBUG'
        */
        throw new UnsupportedOperationException("Method not decompiled: com.loc.fo.a(android.content.Context, double, double):java.lang.String");
    }

    public final void a(long j, boolean z, int i) {
        try {
            this.e = z;
            this.d = Long.valueOf(j).intValue();
            this.f = i;
        } catch (Throwable th) {
            ft.a(th, "LocNetManager", "setOption");
        }
    }
}
